<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

    <!-- <script>
		$(function () {
			$("#submit").click(function () {
				$.ajax({
					type: "post",
					url: "/music/upload",
					success: function (data) {
						if (data.status == -2) {
							alert("文件不是MP3格式!");
						} else if(data.status == -3) {
							alert("歌曲存在！");
                            
						}else if(data.status == -1){
                            alert("上传失败，请重试！");

                        }else{
							window.location.href = "list.html";

                        }
					}
				});
			});

		});
	</script> -->
</head>
<body>
<!--enctype="multipart/form-data"-->
<form method="post" enctype="multipart/form-data" action="/music/upload">
    文件上传：<input type="file" name="filename"/>
    歌手名: <label>
    <input type="text" name="singer" placeholder="请输入歌手名"/>
    </label>
    <input type="submit" value="上传"/>
</form>
</body>
</html>